using System.Collections.Generic;

namespace OracleInternal.SqlAndPlsqlParser
{
	internal class IntSortedMap<TKey> : Dictionary<TKey, int>
	{
		public new int this[TKey key]
		{
			get
			{
				if (!TryGetValue(key, out var value))
				{
					return -1;
				}
				return value;
			}
			set
			{
				base[key] = value;
			}
		}

		public IntSortedMap()
		{
		}

		public IntSortedMap(IEqualityComparer<TKey> comparer)
			: base(comparer)
		{
		}
	}
}
